import request from '@/utils/request'

// 查询采购入库管理列表
export function listStoredetails(query) {
  return request({
    url: '/storedetails/storedetails/list',
    method: 'get',
    params: query
  })
}

// 查询采购入库管理详细
export function getStoredetails(id) {
  return request({
    url: '/storedetails/storedetails/' + id,
    method: 'get'
  })
}

// 新增采购入库管理
export function addStoredetails(data) {
  return request({
    url: '/storedetails/storedetails',
    method: 'post',
    data: data
  })
}

// 修改采购入库管理
export function updateStoredetails(data) {
  return request({
    url: '/storedetails/storedetails',
    method: 'put',
    data: data
  })
}

// 删除采购入库管理
export function delStoredetails(id) {
  return request({
    url: '/storedetails/storedetails/' + id,
    method: 'delete'
  })
}
